fixed an issue on email checking when a problem occurs on an email