Fixed bug that caused XML not to display (accidentlly overriting variable with another variable of same name