Error in Figma swap instance

In Figma, I have a big collection of icons with different styles. I want to use them for making side navigation tabs. The tabs should change appearance when I hover or press on them. In their normal and hovered state, the icons should have a simple outline look, but when I press a tab, the icon should become filled. However, I’m facing some issues with changing the colors of the icons and making them behave as I want when I interact with them.
Help would be appreciated

I have restructured icons layer pattern in editor file icons are updating accordingly, but on previewing filled icon for respective tabs are not updating