fixed bug of widget