The heck... The problem is not in this piece of code! I tried out removing it and the problem is still there no matter what i did. Thanks anyway guys, i really should have checked that possibility. I'll see what i can do. smirk