fix refresh not respecting date range