fix version parsing