Fixed issues with dynamic nodes not going away.

(Now nodes correctly disappear!)