Fix warning

Fix `warning: assigned but unused variable - sess_id`