coverity fixes
coverity fixes