Fix main menu background showing when resizing window during load