fixed cycle state bug