Fix unablility to logout