should fix [#78073506] where QueryEvent.state set to PENDING