fix bug on html template