Fix for coverity issue 52010
Fix for coverity issue 52012
Fix for coverity issue 52013
Fix for coverity issue 52011