Help with sporadic macro spec: bug?

Hey there, I am playing a mage and I have this macro:

#showtooltip
/cast [spec:1, @mouseover, harm][spec:1, harm] Arcane Blast
/cast [spec:2, @mouseover, harm][spec2, harm] Scorch
/cast [spec:3, @mouseover, harm][spec3, harm] Frostbolt

And playing as an Arcane mage, very rarely during my rotation I cast Frostbolt instead of Arcane Blast. I know it is this macro as replacing Frostbolt with another spell casts that other spell.

This only occurs when I am playing Arcane, and there is no precise pattern I can see of when it casts Frostbolt. What I do notice though is that it happens right after a cast of Arcane blast; meaning I have not seen it occur if the previous cast was not Arcane blast.

Is this a known bug? If not is it possible to download an addon or some type of debug mode to understand why it is casting Frostbolt occasionally?

You’ve got typos in the Scorch and Frostbolt target components, missing the : after spec.

Fixed

#showtooltip
/cast [spec:1,@mouseover,harm,nodead] [spec:1] Arcane Blast
/cast [spec:2,@mouseover,harm,nodead] [spec:2] Scorch
/cast [spec:3,@mouseover,harm,nodead] [spec:3] Frostbolt

Optimized

#showtooltip
/cast [spec:1,@mouseover,harm,nodead] [spec:1] Arcane Blast; [spec:2,@mouseover,harm,nodead] [spec:2] Scorch; [@mouseover,harm,nodead] [] Frostbolt

Ah dang you’re right! I will see if this fixes it.

EDIT: From the testing I have not had a frostbolt cast yet. Seems to be fixed thank you!

I never see these typos until after I make a post!