corrects history links