Fix calendar page replacement