Fixed bug that wasn't closing quotes in <ref> attributes.`