RangeError raised with year class