Fixing coverity 18573