fix active count