fix bug for `colorRamp2`