fix html rendering bug