fix scrutinizer warnings