bug and patch not in tracker. little fix by me (replace while loop by for(...;act;...). Thanks Daniel ;)