fix disconnecting outlets when leaving the stack