html5 mode fix