fix problem of state resh