fixed language version detection bug