fix for bug https://savannah.cern.ch/bugs/index.php?98281