fixed html5 bug