fixes #125 detaching nodes triggers $destroy