fix copy files  bug