Removed leader ellection infinite loop bug.