fix bug related to menu navigation.