a few coverity defects