fix html email bug