Fixed state bug.