Fixed bug that rejected valid periods from year