Fixes to Coverity defects 84335 84336 84337