Fixed load file error if no file is found