fix self update bug