Fixed "'while' statement does not loop"