Fix bug logout