qga: flush explicitly when needed