Fixed a coverity issue.