More fixes to reference files.
Fix incorrect childNode to be firstChild