emails: bug fix on render