I apologize if this question has already been asked before.

After a quest where I had to kill all the goblin leaders, I got the Enemy of Justice debuff. I don't know how to remove it. I tried to kill the hero, and then resurrect with a scroll -> the debuff icon disappeared, but I was still an enemy for everyone. Although I don't understand why in the Emerald Grove, I'm considered an enemy after killing a goblin almost on the other side of the map.

Because of this problem, I can't progress further in the story and don't want to go through everything again.