fixed main menu bug