Fixing bug in transactions controller for computing analysis values