fixed bug with units in xml