fixed the menu rotation issue