bug fix calendar