fix conditions in xml