Fixed log off issues.