fix html5 mode