Fixed bug where couldn't consistently load main menu correctly.