bug fix in file loader