Added fix for 'Invite Students' Emails are not sending