Did you replace the plastic gear on the little dooverlackey that you push into the hole on the gearbox?
Or,
Just put a whole new dooverlackey in in place of the old one?
Check that it rotates easilly, it has small thrust washer down in its inside, without the tiny washer it can bind in bottom of housing.
Other thing, the cogs on these are not centred with the housing, you may need to rotate the housing, as you gently push it into the box.
To check it is rotating, before you screw on the speedo drive cable, rotate the tailshaft, and check the little round shafty thing with the slit in it is rotating.
Then use the bolt with little tab plate to hold it in.
If the groove in the dooverthingy doesnt line up with the lock tab, mark it a bit, pull it out, and use a thin edge file to make a new groove for the lock tab.