Fixed bug causing infinite loop when non-number typed at menu