html5 mode bug fixed