further fix for leader election