Fixed StructureTextRepositories for both DOM and Simple.