fix for https://issues.infn.it/jira/browse/CREAM-105