fix handlebuffer.remove exception: item not in list