Hmm I did not check the end of the list

Well that means that somewhere in the file there is another error. Maybe that the beginning of the list was overwritten partially, but I really wonder how it could happen.
It is quite more difficult to recover, and I do not really have few hours to try to correct the file, sorry

You do not have a .bak file in the same folder? Maybe you could rename it to .amc and get the list as it was before the last save.