fixed isLeader and default value of leader