take the reset target clause out.

I had this problem. It's because you target your main then target the mob the main is interested in.

So in essence you are resetting the target twice, meaning the macro will get reset.