delete buf is fixed