OK give this a go. It is usually better to use the Cut function for the entry than to use the Remove button.
Thanks a lot for the help. I noticed that when I use remove button to remove NPC, near infinity can not open the edited GAM file again. It show the error message "unknown file". Just curious how can this happen.