fixing active member calculation issue