coverity warnings 10077 10076 fixed