fixed crashes on email