Bugfix: cannot sign out properly