fix html5mode