suffix tree fixes