user_id duplicate fix