fix bugs in m21p conversion from fractions