Yes I know it's a debug thing but it still irks me =P
The NPC No. field is not redrawn properly, i.e. if it draws a number with more digits, then a number with less digits, there will be trailing digits which result in the "wrong" number being displayed.
Suggested fix: clear those three tiles before drawing the number. (or even two, since the first digit will always be drawn and will never need clearing)