Fixed bug in barchart