Corrected reference to leaderId in election