Sounds like you have it sorted.

I don’t think the internal shaft is fixed in its position. You should be able to lay the cable flat and straight and then move the shaft from end-to-end. So maybe the shaft position had moved a bit too much towards the speedo end of the cable and it could be moved back towards the gearbox end.