Replace placeholder with real ids