fix bug on widget