The reason you have this issue, is most likely due to how macros dont like to queue up with the GCD.
When you press it, you press it too soon, and it only registers the 2nd part, which is <t>. When you do that, it targets you next.