recording_id incorrectly being set to subject_id in toXML()