fix up mismatched keys