Fixed setCredit with duplicate insert