Fix a problem of the return to the main menu