fix for invalid xml