api small year detection fix