mathmo: fixed https://github.com/gmp26/Apps1/issues/6 and 2