Transaction id fix

PR for #24.