fix bug query / send