version detection fix