bug fix for main menu