empty log file bug fixed