Fixed the menu overflow bug