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