total active count double substraction bug corrected