Ok, gotcha.

Are you checking for codes on the same key cycle that the error occurs, or after having cycled the key?