The first run loads the expected value, which is an error, and loses track of the intended data format. We then write out the actual value blindly. The second run loads the value as an SVG (which isn't an SVG but we don't validate) and so we coerce the actual to an SVG and write it out