Fix a bug when refreshing the ObjectsEditor