fixed a coverity issue.