Fixed bug trying to load null file.