calendar bug fix