Fixed crash when calling application from widget