fix the handling of negative name query responses and the handling of