Fixes invalid XML 

Closes #2