fixed duplicate state bug