Fix erroneous "invalid input" message.