Fixes for OS X
Real amount is 64 bit
Acutally decimal_amount is 16 bit