fix calendar type