fixed duplicated files bug.