Fix bug in collapsed submenu