fix leader election, writing bogus 'leader' document