Fix bug when more than one year of data was asked.