Fix html generation.