Fixed a bug preventing the widget to not refresh.