Fixing case number deduping logic.