fix widget bug