fix bug with log file names