I think that when you make a displacement and hit it just before the dominate kicks in it sets NPC's hostile to you.
This can be done by for example staying in darkness.
Casting displacement.
Copy is summoned and hit by darkness, goes hostile.
Dominate effect sets in and its friendly.
But it counts as having attacked an NPC.
Logging out for 10 minutes or more does not fix the hostile issue.