fix leader selection by partition