Fix error messages.