use ,Null at end of macro. It checks if spell is active or not. atleast it works on me when i cast CoE on warlock.