Added missing break to while loop