Fix the while command

How did this even...