fixed bug in file load