Fixed incorrect tag argument to SubElement call

Fixes #47