Speedometer problems

The old cable was frayed, split and broke off the end of the connector at the speedometer. Prior to that it was working fine for a couple years when I purchased the car. I put about 5 miles on the car yesterday after installing and the odometer read an additional 25!