Um....I've encountered this too and there's no predicting it. Although, I only recall it happening in Advancemame, which is what I mostly use. What version of mame are you using? Off the top of my head, I'm thinking there's some kind of nvram dumping or something, because I've found the .hi files still in the folder after the score regression.