fix a bug with the widgets