Fixes email notifications.