very same thing was hapening to mine,
turned out to be the speed sensor, not the sensor its self but the conetion block leading to the loom.
the sensor is on the end of the speedo cable at the gear box
tuck me an age to find the prob, as i didnt think the speed sensor would cause such a problem