fixed some minor bug in installments