def last email fix