fix get id in socket collection