Cleanup unclosed tags and remove some tags