Minor bugfix in the barplot code