Fixed infinite loop when user enters invalid menu option