fix XML unmarshaling