PortalKit: fix bug that error log cannot be clicked by twice