Fixed minor bug that disabled logout