Add fix to email not being sent