fixed file copy error