coverity fixes