fix double htmlOptions declaration