Fix bug in barcharting.