fixed issues with the position of restored widgets.