Fixed unable to logout issue.