fixed update widget bug