If you apply the Known Bug Fixes to correct the Master Categories issue in your older version and then clean up your site, they should stay fixed now that the bug fixes are applied ...

If they keep changing, then something else is going on that you will need to look into ...