fix calendar's bug