Fix the bug that deleted entries exist without deal_id.
Fix the spec which contains ambiguous link specification.