bugfix on selfclosed markups duplication