Fixed while loop variable