fix the math behaind selection of mm

Most things are done and bugg free, need only to start the scaning
progress