Logfile error fix