fix log off with shortcut