Fix crash on widget