Fix undefined tx add. See #22