tree_remove fix return value