Fixes bug in emails.