very odd o2 sensor question

ok i changed my o2 sensor but when i unscrewed the old one out it took the treads from the headers wit it… so i’ve been tring to use exhaust crack sealer to hold the o2 in its ok for a fewdays then the stuff just falls off… any ideas what i can do thanks alot…