Fix the group activity expiration logic