log file bug fixed