Code reverts to old version when reopening editor

That seems to have done it! Many thanks!