fix BufDelete hook