You also need to kill the flushedRowMarkers array, otherwise you'll have problems inside child queries etc.