fix bug: entity query decode error.
Merge pull request #343 from forumbyr/master

fix bug: entity query decode error.