fixed bug in Manager of widgets