KRACOEUS-7529:fixed bug with credit allocation