Fix version checking