To correct logs