bugfix delete buffer