It's not a bug; it's just a poorly designed convenience. It's meant to make it so you can heal yourself when soloing, without needing a second button or changing your target to yourself. It would be nice if it only applied to the raw ability button and not to macros; or at least didn't apply when the a <> is specified.

I just tested Legion's macro and it still Lady's me instead of tt.