0 count items error bug fix