html5mode fix