fix bug in new iper master selection