fixed the major minor calculation
Merge pull request #3 from deadfalkon/master

fixed the major minor calculation