Fix for coverity (Annalisa De Caro).