fix pool counter bug