fix crash in desktop widget