Leader Election bug fixing