Need a bit of help with triggers: replace crossbowmen with longbowmen after the crossbowmen research

Need a bit of help with triggers.

Trying to use triggers to replace crossbowmen with longbowmen after the crossbowmen research, but it doesn’t work, despite the E#0 is “add training location”. What did I do wrong?

image1

image2

image3

Disabling archer line after crossbowmen is researched still doesn’t work,
The only way it would work is for me to “enable” longbowman, but then it will replace your UU in castle.

How much do you know about XS? Maybe try with