I guess the problem was that the substitute also matches the same rewrite rule.
Regarding your other problem. I don’t understand exactly what you are trying to achieve. Parenting mappings which are using dynaview won’t work. And it doesn’t make any sense. You can render only one view at a time.
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.