fix patch for bestemailaddress, use autotransaction