fixed "No buffer to delete or flush" notices