set invalid year to null