bug fixed in order to read the entire log file.