Fix logging out