in reply to hm strange loop for me..

You're not doing anything incorrect. The code you've provided and your example work perfectly for me. Perhaps the bug is generated by the parts in your while loop that you've cut out for the moment.

Obvious things to check

No ideas if it still doesn't work.

jarich