alert email bug fix