Fix some scan coverity reports + typo