fixed coverity defects