fixed calendar bug