Antifreeze leak on header flange

Ok, so dumb question,.... What's the easiest way to get the studs out? I don't have room on the stud to double nut them with the headers on, so I am assuming I need to pull the headers off, double nut them and hope they come out ok?