fixed notify admin on error problem with sending email