fixed some coverity warnings in mains
typo
fixed some coverity warnings