Various coverity fixes
Should be signed