Revised the X-Frame header removal code