fix text style index/type association when creating new text