fix the problem of _update_label_buf