Small logout bug fixed