Fixed: subsequent query runs do not write all the result events