Fix errors with months and years in bar graphs