Fixed indexing in TermIndexAtom