Fixed a bug that made the program crash when the amount to be paid for where bigger than UInt32 could handle