fix query bugs
Merge pull request #7 from yeyuexia/fix/bug

fix query bugs