Fix html in relation template