Oh, I see! Is there a way to correct this, or is it just stuck like this? I'm unsure how, or even if this could be solved, really.
Create two instances for that pattern. And in script enable one, disable one based on the shape color palette.