PortalKit: avoid sometimes startup progressbar doesn't show