fix calendar equality check