bugfix: login-token will not be restored correctly