fix version checking