email bug fix