fix scrutinizer-founded errors