lead election works correctly