fixing xml errors