fixed object-editing: ids were loaded and saved in reverse