fix version detection