fixed remove widget bug