fixed email bug