how to fix speedo

My smartass reply for fixing a speedo would be "sock stuffing".
Those are tempermental magnetically operated via the cable. If you google Mr Heaterbox, maybe give them a call to see what can be done