Version parsing bug fix