Fix loading of files on startup.