Merge pull request #140 from forumbyr/master

fix bug ns query