fix error html file and generate.sh