year detection fix