Fix copying files to target