Fixed the file loading problem if the file was successfully downloaded.