coverity warning 16816 fixed