fix invalid matching on remove-props for tableOfContents