fix endperiod support multiple location