fix bugs of calendar for new features