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