fixed bug in VersionQuery that multiplied results massively