Fixed incorrect tag argument to SubElement call.