Fixed undefined user_id.