Fixed issue with email not sending