Fixed installWidgetHandler type-bug