bug fix, logout