html generation fixed