fixing version detection