Fix a bug in saveField