Coverity fixes 1135019 1134938

Coverity fixes 1135019 1134938