Fix a menu item priority comparing issue