calendar: fix same performance issue