Fixed issue with copying files