fixing bug when version has major.minor