Fixed issue where the main menu would stop working after resizing the browser.