fixing issue which occurs when new widgets exist