fixed a bug previously if iframes loads faster than main frame, their workers gets cleared.