Fix overwriting logging information bug