fix log file