fix votes for leader with empty log