Fix code analizer warnings