Coverity issues

also fixed spacing.