fix version query