Fix to file copy.