fixed to update group leader when leader became inactive