I tried it on my copy and can reproduce it, although I have no idea what's causing that.
Are you sure that the backup Pokegen created is the same as what you had before you did any editing? If you have access to the very original, try that.
Because you're having trouble with the backup, that indicates that either you saved multiple times and it overwrote the very original, or the problem is outside of Pokegen.