repair creditLog function