Fixed StackOverflow bug when changing an installments totalvalue to lower than the amount paid