Fixed bug where editing transaction would not update stats correctly