fix crash in XML.setProperty()
cleanup