Speedometer will only go up to 40mph, and idea how to fix?

Hard to say without seeing it. On mine, whatever holds the spring in place was gone, so I used a piece of safety wire (lock wire) to hold it down and it's worked fine ever since