fix for ROOT-5722