fix bug about Registry.newObject