Tentative fix for https://issues.infn.it/jira/browse/VOMS-379