fixes self-closing tags