Fix bad register values.