Fix copy script.