I had the same problem, and executed the same fix. It sadly didn't last.

I'd strongly recommend anyone else attempting this repair, that they buy a new rack. They are not expensive. If you have removed parts to get here, repairing both the rack and pawl is the way to go.