Change leg_id to string.