Fixed the loading flash problem