Fix to coverity fix