Fix a bug which duplicate fields when loading a saved file.