fix calendar pattern