logout bug stuff