fixed bug when loading inexistent file