Contract history border fix