Fix html generation