fixed logoff problem