fix coverity warning