Fix massively retarded token indexing bug.