Fix rendering issues in HTML