fix null user_id issue