fix loading of file