Fix for https://issues.infn.it:8443/browse/VOMS-258