fix mapping for buffer delete