Yeah... I didn't really understand the line number - it said
"line 25, <> line 3." (line 25 is the if statement)
And when I truncate line 25, the error stops happening - i don't see how that line can affect the while part, since it's not changing anything..