fix for ROOT-5769