correct typo
correct querybuilder syntax
Merge pull request #1366 from craigh/querybuilder_fixes

Querybuilder fixes