fixed makeLeader

fixed makeLeader when dying so that the next leader won’t move