fix wrong master chosen with some confs