correct the bug that can not add widgets to tab item.