fix for https://github.com/dmwm/CRAB2/issues/932

import fix that Federica committed to CVS head before migration to GIT