Delete useless variable in stateManager