Fix some scan coverity reports + typo

Fix some coverity scan reports + typo