Fixed an issue where the root element name wasn't being set.