fix xml errors