Coverity fixes

Various coverifix