fixed widget crash