fixed InverseZigZagDelta bug