coverity error fix