Bugfix: crash on creating new transaction