fixed logout-bugs