Running 1.38a and for some reason gift certificates are calculated 2 times!

For example if a customer has a $10.00 gv balance and applies say $1.00 towards an order it will correctly leave a $9 balance BUT the ot_total is wrong, it has a double discount. (see below example)


Trying to locate the code to debug further but I'm having a hard time, can anyone point me in the right direction?


Here is an example order: (total should be $20.00)

Sub-Total: $21.00
Local Pickup: $0.00
Gift Certificates: -$1.00
Total: $19.00