tried to fix failed to delete buffer