fix to histogram_bezier polynomial