Fix log file