man i just used the keybind stuff in wow to make target party 1 and 2 q and e so idk. seems u have a lot of redundant stuff in ur macro tho. remove target friend line. no need to have @party with the stopmacro line. also don’t need the stopmacro line.
id try removing the 3rd line first and see what happens.