fix for ROOT-6216