Set transaction to null instead of deleting it