fix a bug of remove node