clean up the leader elect fix