Fix log path bug.