Fix query-continue