BGEE - stuck in loop, Duke sends me to Candlekeep but i'm wanted for murder!

So how do I get around this? I finally meet the Duke who sends me to Candlekeep. But I've already been there and killed the leaders of the IronThrone. As soon as I show up in CK I'm arrested, charged with murder and have to escape through the catacombs....again.
What did I miss?
What did I miss?
0
Comments
First question is whether your game is modded or if you have you used the console or a save editor.
My first guess is that your game may not be on chapter 7
Check what the journal says or use console command
C:GetGlobal("Chapter","GLOBAL")
Set to chapter 7 if not there
C:SetGlobal("Chapter","GLOBAL",7)