Thanks Dennis... I did some modifications
and I discovered why i was getting this error...
is because I didn't delete the "clear task"
so at the second interation the value was 0 for sure...
now I put it out of while loop
so I'm think is working nice =D