fix update stateView issue