fix query on calling sub_menu