fix for ROOT-5573