Fix offline login.