Fixed illegal files bug