typo
fixed a number of coverity defects