Fixed sudden logout