Bug fix for mid-dialog REFER being treated as a target refresh and overwriting dialg states.