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