Fix html truncation