fix some bugs
insert for widgets