fix multiple IDs issue