Fix the mismatch in the error messages.