Fixing error with data_id = -1 to remove data link