fix html mode