Fix bug when the max==min with GradientColorMap