Fixed the widget crashing some times