fix a small bug which appeared when a series had a min/max of zero