Fixed logout bug from the last commit.