Fixed copying files issue.