Fix cropping in HTML output