fix bug ns query