fixed issue with type in xml export.