Fixed the error message for scanNumber