Fix NxLogFile offset calculation error that causes the last few lines to be continually logged