Mount macro doesn't work in instances

I’m trying to create a macro that summons a ground mount in dungeons/raids. But it just won’t allow me to summon any mount. And when I try to use it in an open world zone without flying, it just summons my flying mount.

It’s also a macro that condenses multiple keybinds into one button. Here’s an example:

#showtooltip
/stop casting
/cast [mod:alt]Grizzly Hills Packmaster; [mod:ctrl]Darkwater Skate; [mod:shift]Obsidian Nightwing; [outdoors, advflyable]Vibrant Mana Ray; [outdoors, noswimming]Cerulean Ruinstrider
/dismount

Is it possible to make a macro that combines all these functions work?

Remove the outdoors conditions. Also, /stopcasting is one word, and doesn’t really serve a purpose.

#showtooltip
/cast [mod:alt] Grizzly Hills Packmaster; [mod:ctrl] Darkwater Skate; [mod:shift] Obsidian Nightwing; [advflyable] Vibrant Mana Ray; Cerulean Ruinstrider
/dismount