Fix broken error messages.