Fix #1646 max one range field can be defined in XML