coverity issues fixed

Coverity fixes