fix calendar error