fix bug,support multiple calendar instances