fix infinite loop

line 30 results in an infinite loop that will never terminate. i just had to fix this locally to get the server running.