workaround for wipping no name buffer and terminal buffer, still has bug