fix copying files