Sergio Perez was unfortunate to lose the race lead after Nicholas Latifi's crash brought out the Safety Car.