Fixed logout issue.