fix old calendar bug