Fix toMod' to not truncate the result