fix bug related with credit processes