log file exists fix