Removing variables when disconnecting nodes fixed.