fix duplicate file problem