fix small bug in checking menu right