fix result state bug