clean SR flags before programming CR