Fixed bug with count in widgets

Fixed bug with count in widgets