Workaround for ROOT6 limitation