fix minor coverity errors