Fix year-span bug in histogram, close #38.