fix https://sft.its.cern.ch/jira/browse/ROOT-5431