fix html5 problems