Fix bug with payment not being registered with full amount.