fixed bug where the year was treated as a string