Fixed restore_object prototypes