Refiltering contracts_ids