Fixed bug where closing the menu messed up navigation