Maciej Berek was chosen despite a rebellion from some members of the ruling coalition.