SPARK-2553. Fix compile error