Fix node deletion