Fixed Coverity issues 14347, 14345, 14346