Fixed int/float error in doTransaction