Fix #11146 (rule check state not saved)