fix buffer_id initial value bug