- fixed error in ReadFile