log off bugfixes