I misunderstood where you were doing this.   I was just running a background script, but you're right that it's not working quite as expected when doing it as a data source.   I'll see if I can figure it out.