avoid no parent detach