fixed no emails being sent