Fix coverity errors CID 1230781
and 1230782,
double attempt to fix coverity error