Fix copy script