fix coverity issue.