Fixed logging out