Year detection fix