Fix type/error message.