Fixing coverity issue
Fixes coverity issue