fix bug that menu break the later process which require user input, such as inquirer