fix cat state bug