fix state bug