Fixes application of index range at track level for dynamic queries.