Fix indexing of split tags