Fixed the col to integer before the loop ends

Hi,

Thanks for the update for i've checked it again and it did not work - the column has to be converted to int before the loop end so when it's 0 the loop will end.

Thanks and try this.
Yuval