fixed version detection bug