fix bug in html5