Fix an issue that prevents the offset to not be between year 0 and 10,000