fixed problem with file lineindex pointing after last line table entry