Fixed issue causing rare XMLSyntaxError exception. Adjusted permissions