[PATCH 22/36] expo: Correct the logic for duplicate-ID detection