Coverity issue 1197642
Coverity: 712599
Coverity: 711764
Coverity 711857