fix files bug