fixed bug in VersionQuery that multiplied results massively
Merge pull request #221 from nla/sc-fix-version-query

fixed bug in VersionQuery that multiplied results massively