fixed item-state bug