Fixed selfclosingtag to reference tags properly.