Fix bug, submenus being closed when active and page reloads.