fix some error messages.