fixing barchart