Fixing coverity 17918