fix non login error on view thread