Fix amount overflow in Invoice building