fixed some problems with automagic_emails