fixed emailing exeption  #2236