Fix bug on widget plugin