Fixed an incorrect conversion from XML element to hash.