logout fixed