Fix calendar parsing.