Money Thread fix

Fixed double loop in money thread
Added missing import in gateway class