fix historical change calculation