bugfix in removeNode()