fixed bugs of widget