Coverity: 711707
Coverity: 711940
Coverity: 712596