Fix logic for PatomicTransaction::add