Fixing logoff