Fix github bug #49 - error bars wrong for histogrammed data