Fixed ghost paths left when removing nodes.