fixed the error that new objects are not saved, and an attempt to load them crushes the editor