Sudden logoff bug fixed