detach passes on unknown object