Fixed widget crash
