fix #202 menu query bug