Fixing bug in extractFromLogFile