minor copy error on [SPARK-3595] commit