fixup for mathematics in breaking keypairs