fix buffer delete history