fix typo in interpolateXYZ