02 sensor removal help

hey if has a cracked exhaust manifold new o2 sensor will not work correctly due to exhaust leaking out before sensor can read correct conten of o2