Fix incorrect version parsing