Minor change to barchart code