Fix version parsing bug.