Bug fix: logout stopped working