that macro is supposed to stay on the target untill it dies before you can switch to another

the solution is to use another simple macro like

/assist party1 (or main_char_name, or Focus, whatever)
/cast Spell