fix missing second state variable in state3