Small fix in log file treatment