fixed bugs of uiwidget