fixed nfiles problem