Fix for case when leader is elected, but election message is arrived