fix sending emails to correct groups