fixed last_email_problem handling