fix logfile