Fix logfile error