fix html nesting