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