fix html element nesting in ou/* templates