(Joyce) Fixed logout script.