fix file copy issue