Hey people. If you have this glitch like I did, the one where you've already done the aforementioned quest but every time you go back to Makarth hold you keep getting spoken to by guards and it goes into a loop, can't go jail, can't pay a bounty, well here is what you do:
1)Transport to Makarth already crouching (if your sneak skill is high enough) or use a invisibility potion and go straight to the temple of talos.
2) (save here just incase!) talk to the 3 guards inside and use this method. "I've been framed" then "take me to jail" then importantly choose "....." next pick "madonach is behind the killing" and finally "fine i'll come quietly" they should then go hostile and attack you
3) Run OUTSIDE the shrine, then go back in again (this is to funnel you're attackers)
4)Kill the 3 guards (more will arrive but kill 3) and then lower your weapons of choice.
5)You can either pay the bounty 8040 (i believe) or go to jail, either option works here.
Then there you go glitch fixed! Only took a few hours to work that out, worth it mind. Also I won't tell you how to break out of jail, that would ruin the fun!