fix historical script