fix coverity defects
fix coverity defects