If your macro was exactly as entered above, it’s because you had Misdirection on a separate line. Each command (#showtooltip, /cast, /use, /equip, /dismount, etc) should go be one line starting with the command and ending with the spell/item/etc (where applicable). There are a few exceptions (#showtooltip will display the specified spell, or if you don’t specify, it will display whatever spell is going to cast or ? if no conditions are true.)
Check this guide Macros: Essential Information for a full rundown of macros, how they work, how to use them, and what they can/can’t do.