This should fix addPayment bug. github #149