fix EndPeroid support multiple location