Fixed Scrutinizer warnings