Fix broken activity count