Fixed bug  in suffix tree indexing