bug fix for widget