Fix anonymous state variable regression.