Fixed duplicate state id