delete buf bug