Fix IllegalArgumentException (bogus element name), thanks Morrio.