Fixed barchart bug