Fix the bug when only the 10th digit is invalid

Fix the bug discovered today. The initial version of my code had this line;
I have no idea how it got lost before committing, probably forgot to save 
or something like that.