fix query check
Merge pull request #116 from phpcr/fix-update

fix query check