Fixed crash with main menu