fixing group hierarchy in both paragraph styles and paragraph styles