fix bug of edge, refine state to user state.