replaced Id for search from primary ObjectId to second Id