Admin logout bug fix