fix bug on widget text edit