add patched from ROOT b753d17f1572ea0ad7f78e9fd50a182b4deba0c9