Fix the drawing of curves which have a min/max
commit version