email alerts fixed