fixed bug on querying non-local shard with time range