Fix core.state variable name