Fix bug when changing year in statistics.