fix credit controller