Fix regenerate calendar