Fix scrutinizer warnings