Having done above and refiited the cable.
Does the mech fail to spring back into higest gear once the cable is reattached?
If so then the cable or cable routing is maybe to blame.
Get rid of frayed cables, check grommits,use light oil on inner cable. Or swop to teflon linned cables.