patch state bug