Fix copyArtifact