Focus Macro Bug says Spell is not learnt

When using my felhunter pet and switching talents, my Focus kick macro no longer works.

The error i get is that the spell has not been learned. The funny part is, if I use the same spell on my target it works.

The only I can seem to fix it is by relogging into the game.

Has anyone encountered this issue as well?

For reference, here’s my macro:

/cast [@focus] Spell Lock(Command Demon Ability)