once you open the dat file with track editor and save it, magic data is lost!
to change some values, use a easy windows build-in text editor to open the md,change the values and save it again.
now, use cmagic to insert it in the dat file.
thats the way i know, perhaps more experienced guys have a better solution.