fix bug exit menu

fix bug exit menu