Fixed the inline displaying for submenus