fix for bug https://savannah.cern.ch/bugs/?98523