reagent: fix some state breakage