fix for ROOT-5933