Fix bug with calculation to ignore Change transactions